pgInternalPointer
Type
property
Summary
It is a pointer to tell certain properties where they should operate.
Syntax
set the pgInternalPointer of widget to <String>
get the pgInternalPointer of widget
Description
Use the pgInternalPointer property to set a pointer to the elements you want to work with the pgTextOfCell, pgTextOfRow, pgContentTypeOfColumn, pgDataOfRow properties. The value of this property must be set before calling one of the above. In addition, the value of this property is interpreted differently for each of the properties that depend on it. The values for each of the properties are:
- pgTextOfCell: (point) Column Number, Row Number.
- pgTextOfRow: (integer) Row Number.
- pgContentTypeOfColumn: (integer) Column Number.
- pgDataOfRow: (integer) Row Number.
Examples
on mouseUp
local tText
# The following code shows how to get the text of the fifth cell of the first column.
set the pgInternalPointer of widget"PolyGrid" to "1,5" --> Column 1, Row 5
put the pgTextOfCell of widget"PolyGrid" into tText
end mouseUp
on mouseUp
local tText
# The following code shows how to get the text of the fifth row.
set the pgInternalPointer of widget"PolyGrid" to "5" --> Row 5
put the pgTextOfRow of widget"PolyGrid" into tText
end mouseUp
on mouseUp
local tTypeOfColumn
# The following code shows how to get the content type of column number 5.
set the pgInternalPointer of widget"PolyGrid" to "5" --> Column 5
put the pgContentTypeOfColumn of widget"PolyGrid" into tTypeOfColumn --> text, svg-lcname,...
end mouseUp
on mouseUp
local tDataRowArray
# The following code shows how to get the fifth row data array.
set the pgInternalPointer of widget"PolyGrid" to "5" --> Row 5
put the pgDataOfRow of widget"PolyGrid" into tDataRowArray
end mouseUp